package cn.exrick.xboot.enterpriseUser.controllerImp

import cn.exrick.xboot.base.service.IEmployeeExamStatusService
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import cn.exrick.xboot.enterpriseUser.controller.IEnterpriseUserController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RestController

@RestController
open class IEmployeeExamStatusController : IEnterpriseUserController.IEmployeeExamStatus {


    @Autowired
    private lateinit var iEmployeeExamStatusService: IEmployeeExamStatusService

    override fun createEmployeeExamStatus(trainId: String): Result<Any?>? {

        return iEmployeeExamStatusService.createEmployeeExamStatus(trainId)
    }

    override fun getEmployeeTrainingList(pageVo: PageVo, jobType: Int): Result<MutableMap<String, Any?>>? {

        return iEmployeeExamStatusService.getEmployeeTrainingList(pageVo, jobType)
    }

    override fun getMyEmployeeTrainingList(pageVo: PageVo, jobType: Int): Result<MutableMap<String, Any?>>? {

        return iEmployeeExamStatusService.getMyEmployeeTrainingList(pageVo, jobType)
    }

    override fun getEmployeeStudyTime(pageVo: PageVo, enterpriseId: String?): Result<MutableMap<String, Any?>>? {

        return iEmployeeExamStatusService.getEmployeeStudyTime(pageVo, enterpriseId)
    }

    override fun getEmployeeTrainShow(employeeUserId: String): Result<MutableMap<String, Any?>>? {

        return iEmployeeExamStatusService.getEmployeeTrainShow(employeeUserId)
    }
}